import { getEnvValue, getPkgVersion, isPRODEnv} from '@/utils/env';

// System default cache time, in seconds
export const DEFAULT_CACHE_TIME = 60 * 60 * 24 * 7;
const PREFIX = getEnvValue('VITE_APP_CACHE_PREFIX') || getEnvValue('VITE_APP_TITLE') || 'GZY_HON';
export const DEFAULT_PREFIX_KEY = `${PREFIX}${getPkgVersion()}`;

// aes encryption key
export const cacheCipher = {
    key: 'zy_aQ0{gD1@c_0@o',
    iv: 'zy_aF0#gC_$hE1$e',
};

// Whether the system cache is encrypted using aes
// export const enableStorageEncryption = isPRODEnv();
export const enableStorageEncryption = true;
